GIT is used to manage a project or a set of files as they change over time. It stores this information in a data structure called a GIT repository. A GIT repository is the directory where all of your project files and the related metadata resides.
Access
You can access GIT Configuration in following way:
- From the dashboard click on the Settings > Configuration and then select GIT Configuration from the drop down as shown in below figure:
![](https://docs.cavisson.com/wp-content/uploads/2023/01/Figure-299-Accessing-GIT-Configuration.png)
2. Once you click the GIT Configuration, GIT Configuration- System Window opens as shown in below figure.
![](https://docs.cavisson.com/wp-content/uploads/2023/01/Figure-300-GIT-Configuration-Window.png)
3. You can now Enable GIT version control for the selected profile.
Note: Use GIT for version control: To use Git for version control, select this check box otherwise Cavisson Version Control System is used.
Select the Mode of GIT Configuration
In the GIT Configuration window, you can configure GIT settings by using one of the following options:
- Use UI
- Use SSH Console (secure mode)
GIT Configuration Using the UI
While specifying the GIT settings using the GIT Configuration window UI, provide the following information:
- Server configuration
- Branch details
- Author details
![](https://docs.cavisson.com/wp-content/uploads/2023/01/Figure-301-GIT-Configuration-Using-UI.png)
![](https://docs.cavisson.com/wp-content/uploads/2023/01/Figure-302-Server-Configuration.png)
- Repository URL-Specify the remote GIT repository URL in the Repository URL field. It can contain HTTP/HTTPS URL or SSH/GIT URLs. For example, you can use the following types of URLs:
git@gitlab.com:test1/abc.git or https://gitlab.com/test2/abc.git
User Name: Username of the GIT account that needs to be remotely accessed.
- Password: Password of the GIT account that needs to be remotely accessed.
- Enable Proxy Settings-You can configure a proxy server that acts as an intermediary for requests from clients seeking resources from other servers. A client connects to the proxy server and requests services, such as a file, connection, web page, or other resource available from a different server. The proxy server evaluates the request to simplify and control its complexity.
![](https://docs.cavisson.com/wp-content/uploads/2023/01/Figure-303-Proxy-Settings.png)
To configure proxy settings:
- Enable the Proxy Settings
- Specify the following proxy settings:
- Proxy server: Specify the proxy server using the following format:
http://ip:port
- Port: Specify the port number. It can range from 1 to 65535.
- Click Test.
Branch Configuration
After providing the repository URL and valid credentials, you can fetch the list of branches from the remote GIT repository. Based on the selected repository, the branch options are updated in the Branch drop-down list.
- If GIT configuration is already saved, the branches are fetched automatically.
- If you are configuring GIT for the first time or configuring some other remote GIT repository, then you have to manually click the Fetch Branch icon.
To select a branch:
- Click the
The Branch drop-down list is updated with the related branches.
![](https://docs.cavisson.com/wp-content/uploads/2023/01/Figure-304-Branch-Configuration.png)
![](https://docs.cavisson.com/wp-content/uploads/2023/01/Figure-305-Author-Details.png)
- Full Name: This field requires the full name of the user who is configuring GIT and performing GIT operations.
Note: Full name is different from “User Name” as it refers to the remote GIT server user name.
- Email: Email of the user who is configuring GIT and will be performing GIT operations.
Save your GIT Configuration
After providing GIT configuration, you must save the settings before performing GIT actions. To save:
- Click the Save button in the GIT Configuration window.
- Your GIT configuration will be saved in GIT_CONFIG and VERSION_CONTROL keyword in the. workprofile.conf in the selected work profile at following path:
$NS_WDIR/workspace/<user_name>/<profile_name>/
GIT Configuration using SSH Console
To perform GIT operations from the SSH console, you need to configure GIT in the secure mode
![](https://docs.cavisson.com/wp-content/uploads/2023/01/Figure-306-GIT-Configuration-Using-SSH-Console.png)
- Select the Use SSH Console (Secure Mode)
- Provide the following Server Configuration
- Repository URL: Specify the remote repository URL in the Repository URL field. It can contain HTTP/HTTPS URL or SSH/GIT URLs.
- Enable the Proxy Settings Specify the following proxy settings:
- Proxy server: Specify the proxy server using the following format:
http://ip:port
- Port: Specify the port number. It can range from 1 to 65535.
Author Details
Provide the following author information:
- Full Name: This field requires the full name of the user who is configuring GIT and performing GIT operations.
- Email: Email of the user who is configuring GIT and will be performing GIT operations.